package lab02.test05;

public class Cube {
    //属性：长、宽、高
    float length;
    float wide;
    float high;
    //行为：变量初始化、求体积
    float variable(float x,float y, float z) {
        length = x;
        wide = y;
        high = z;
        return 0;
    }
    float volume(float x,float y,float z){
        return x*y*z;
    }
}
